package com.qk.common.enums;

public enum RedisEnum implements  Code{
    //获取缓存失败
    REDIS_GET_FAIL("获取缓存失败", 10031),
    //写入缓存失败
    REDIS_SET_FAIL("写入缓存失败", 10032),
  ;



    private final String msg;
    private final int code;

    RedisEnum(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
